package com.lzy.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lzy.entity.SysRoleDeptEntity;
import com.lzy.entity.SysRoleEntity;

import java.util.Map;
import java.util.Set;

/**
 * 角色和部门关联表
 *
 * @author lyw
 * @email lyw@gmail.com
 * @date 2023-02-27 20:34:44
 */
public interface ISysRoleDeptService extends IService<SysRoleDeptEntity> {

  public IPage<Map<String, Object>> selectPageList(Page<Map<String, Object>> result, LambdaQueryWrapper lqw);

  /**
   * 获取当前用户的部门角色信息
   * @param deptId 部门 id
   * @return  结果
   */
  public Set<SysRoleEntity> selectDeptRoleInfo(Long deptId);

  /**
   * 删除当前角色的部门信息
   * @param roleId 角色id
   */
  public void deleteRoleDeptByRoleId(Long roleId);
}

